/**
 * 项目名称:玩家类
 *
 * @Author: 夏国倩
 * @Date: 2023/9/16 9:13
 * @Copyright
 */
package itSystemCase3;
public class Player extends Game{
    private int levelNo; //玩家当前级别号
    private int curScore; //玩家当前级别积分
    private long startTime; //当前级别开始时间
    private int elapsedTime; //当前级别已用时间
//无参构造方法
    public Player() {
    }
//有参构造方法
    public Player(int levelNo, int curScore, long startTime, int elapsedTime) {
        this.levelNo = levelNo;
        this.curScore = curScore;
        this.startTime = startTime;
        this.elapsedTime = elapsedTime;
    }
//属性的get和set
    private int getLeveNo() {
        return 0;
    }

    public int getLevelNo() {
        return levelNo;
    }

    public void setLevelNo(int levelNo) {
        this.levelNo = levelNo;
    }

    public int getCurScore() {
        return curScore;
    }

    public void setCurScore(int curScore) {
        this.curScore = curScore;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getElapsedTime() {
        return elapsedTime;
    }

    public void setElapsedTime(int elapsedTime) {
        this.elapsedTime = elapsedTime;
    }
    //玩家玩游戏的方法
    public void play(Game game) {

    }
}
